package com.xtedu.examproject.entity;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;

public class StudentExamRecordDTO implements Serializable {
    /*
     * 有些字段为保留字段，后续可能使用
     * */
    private float theoryScore;//考试成绩
    private float practiceScore;//考试成绩
    private boolean examResult;//考试结果
    private Date createDate;//考试时间
    private String examName;//考试名称
    private Timestamp startTime;//考试开始时间
    private String courseName;//考试课程名称
    private String stuName;//学生名称
    private String className;//班级名称
    private String role_name;//角色名称
    private String idCard;//身份证
    private String phone;//手机号
    private String teacherName;//教师名称
    private String subjectName;//科目名称


    private Boolean gender;

    //添加 对应的id ,满足查询所有的考试记录
    private int examId;
    private int stuId;
    private int classId;
    private int courseId;

    public int getExamId() {
        return examId;
    }

    public void setExamId(int examId) {
        this.examId = examId;
    }

    public int getStuId() {
        return stuId;
    }

    public void setStuId(int stuId) {
        this.stuId = stuId;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public int getCourseId() {
        return courseId;
    }

    public void setCourseId(int courseId) {
        this.courseId = courseId;
    }

    public StudentExamRecordDTO() {
    }

    public StudentExamRecordDTO(float theoryScore, float practiceScore, boolean examResult, Date createDate, String examName, Timestamp startTime, String courseName, String stuName, String className, String role_name, String idCard, String phone, String teacherName, String subjectName) {
        this.theoryScore = theoryScore;
        this.practiceScore = practiceScore;
        this.examResult = examResult;
        this.createDate = createDate;
        this.examName = examName;
        this.startTime = startTime;
        this.courseName = courseName;
        this.stuName = stuName;
        this.className = className;
        this.role_name = role_name;
        this.idCard = idCard;
        this.phone = phone;
        this.teacherName = teacherName;
        this.subjectName = subjectName;
    }

    public StudentExamRecordDTO(float theoryScore, float practiceScore, boolean examResult, Date createDate, String examName, Timestamp startTime, String courseName, String stuName, String className, String role_name, String idCard, String phone, String teacherName, String subjectName, int examId, int stuId, int classId, int courseId, Boolean gender) {
        this.theoryScore = theoryScore;
        this.practiceScore = practiceScore;
        this.examResult = examResult;
        this.createDate = createDate;
        this.examName = examName;
        this.startTime = startTime;
        this.courseName = courseName;
        this.stuName = stuName;
        this.className = className;
        this.role_name = role_name;
        this.idCard = idCard;
        this.phone = phone;
        this.teacherName = teacherName;
        this.subjectName = subjectName;
        this.examId = examId;
        this.stuId = stuId;
        this.classId = classId;
        this.courseId = courseId;
        this.gender = gender;
    }

    public Boolean getGender() {
        return gender;
    }

    public void setGender(Boolean gender) {
        this.gender = gender;
    }

    public float getTheoryScore() {
        return theoryScore;
    }

    public void setTheoryScore(float theoryScore) {
        this.theoryScore = theoryScore;
    }

    public float getPracticeScore() {
        return practiceScore;
    }

    public void setPracticeScore(float practiceScore) {
        this.practiceScore = practiceScore;
    }

    public boolean isExamResult() {
        return examResult;
    }

    public void setExamResult(boolean examResult) {
        this.examResult = examResult;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getExamName() {
        return examName;
    }

    public void setExamName(String examName) {
        this.examName = examName;
    }

    public Timestamp getStartTime() {
        return startTime;
    }

    public void setStartTime(Timestamp startTime) {
        this.startTime = startTime;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getRole_name() {
        return role_name;
    }

    public void setRole_name(String role_name) {
        this.role_name = role_name;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    @Override
    public String toString() {
        return "StudentExamRecordDTO{" +
                "theoryScore=" + theoryScore +
                ", practiceScore=" + practiceScore +
                ", examResult=" + examResult +
                ", createDate=" + createDate +
                ", examName='" + examName + '\'' +
                ", startTime=" + startTime +
                ", courseName='" + courseName + '\'' +
                ", stuName='" + stuName + '\'' +
                ", className='" + className + '\'' +
                ", role_name='" + role_name + '\'' +
                ", idCard='" + idCard + '\'' +
                ", phone='" + phone + '\'' +
                ", teacherName='" + teacherName + '\'' +
                ", subjectName='" + subjectName + '\'' +
                '}';
    }
}
